<template>
	<view class="contain">
		<web-view v-if="h5link!=''" :webview-styles="webviewStyles" :src="h5link"></web-view>
	</view>
</template>

<script setup lang='ts'>
import { ref,reactive } from 'vue'
import {  onLoad } from '@dcloudio/uni-app'
import { userStore } from '@/stores/userStore'
const store = userStore();
let h5link=ref('');
const webviewStyles=reactive({
	progress: {
		color: '#FF3333'
	}
});
onLoad((e:any)=>{
	if(store.backRouter!=null && store.backRouter!=''){
		console.log("h5链接",store.backRouter);
		h5link.value=store.backRouter;
	}
});
</script>

<style lang='scss' scoped>
	@import "webview.scss";
</style>